#include "SplitToolCppJieba.h"

SplitToolCppJieba::SplitToolCppJieba(Configuration& conf)
    :_conf(conf)
    ,_jieba(DICT_PATH,HMM_PATH,USER_DICT_PATH,IDF_PATH,STOP_WORD_PATH)
{}

vector<string> SplitToolCppJieba::cut(const string & sentence)
{
    vector<string> words;
    _jieba.CutAll(sentence,words);
    return words;
}
